package com.atguigu.gulimail.product.service;

import com.atguigu.gulimail.product.entity.AttrAttrgroupRelationEntity;
import com.atguigu.gulimail.product.entity.AttrEntity;
import com.atguigu.gulimail.product.vo.AttrGroupAndAttrsVo;
import com.atguigu.gulimail.product.vo.AttrGroupRelationVo;
import com.atguigu.gulimail.product.web.Vo.SkuItemVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimail.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author xujiale
 * @email 2519970360@qq.com
 * @date 2023-10-24 15:34:13
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params,Long catLogId);

    AttrGroupEntity getInfo(Long attrGroupId);

    List<AttrEntity> getAttrRelation(Long attrgroupId);

    void deleteRelations(List<AttrAttrgroupRelationEntity> collect);

    List<AttrGroupAndAttrsVo> getAttrGroupAndAttrs(Long catelogId);

    List<SkuItemVo.SpuItemAttrGroupVo> getAttrGroupAndAttrsBySpuId(Long spuId,Long catalogId);
}

